package src.com.susiqi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;
import src.com.susiqi.dto.LoginDto;
import src.com.susiqi.dto.UserDto;
import src.com.susiqi.dto.UserPageDto;
import src.com.susiqi.enity.Users;
import src.com.susiqi.result.Result;

public interface UserService extends IService<Users> {
    //登录
    Result login(LoginDto loginDto, HttpServletRequest request);
    //根据id获取用户
    Result getById(Long id);
    //删除用户
    Result deleteById(Long id);
    //更新或添加用户
    Result saveOrUpdate(UserDto userDto);
    //分页查询用户
    Result getPage(UserPageDto userPageDto);
}
